﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using 控件调整.Common;
using 控件调整.Views;

namespace 控件调整.ViewModels
{
    public class MainViewModel : BaseViewModel
    {
        public ObservableCollection<UserControl> TabList { get; set; }

        public MainViewModel()
        {
            TabList = new ObservableCollection<UserControl>()
            {
                new ViewA(){ DataContext = new ViewModelA(){ PageTitle = "个人中心",NavUri = "UserCenter", TabCloseCmd = new BaseCommand<string>(null,TabClose)} },
                new ViewB(){ DataContext = new ViewModelB(){ PageTitle = "用户管理",NavUri = "UserManager", TabCloseCmd = new BaseCommand<string>(null,TabClose)} },
                new ViewC(){ DataContext = new ViewModelC(){ PageTitle = "菜单管理",NavUri = "MenuManager", TabCloseCmd = new BaseCommand<string>(null,TabClose)} }
            };
        }

        private void TabClose(string obj)
        {
            
        }
    }
}
